import request from '@/utils/request'

/**
 * 登录
 * @param data
 */
export function login (data) {
  return request({
    url: '/api/auth/user/login',
    method: 'post',
    data
  })
}

/**
 * 退出
 * @param data
 */
export function logout () {
  return request({
    url: '/api/auth/user/logout',
    method: 'post'
  })
}

export function captcha () {
  return request({
    url: '/api/admin/captcha.jpg',
    method: 'get'
  })
}
